package com.eye.catcher.service.generate;

import com.eye.catcher.entity.TYwDaBaseInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eye.catcher.system.yw.Info.param.BaseInfoDto;
import com.eye.catcher.system.yw.Info.param.BaseInfoPage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * <p>
 * 基地表 服务类
 * </p>
 *
 * @author huzhiwei
 * @since 2022-05-12
 */
public interface ITYwDaBaseInfoService extends IService<TYwDaBaseInfo> {

    void addBaseInfo(TYwDaBaseInfo baseInfo);

    void editBaseInfo(TYwDaBaseInfo baseInfo);

    void deleteByIds(String ids);

    Object getAllList(BaseInfoDto baseInfo);

    Object getPageList(BaseInfoPage build);

    Object getBaseInfoByCode(String code);

    String exportBaseTemplate(HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException;

    String uploadBaseTemplate(MultipartFile file,String userId) throws IOException;
}
